import ReactDOM from 'react-dom';
import { HashRouter } from 'react-router-dom';
import { install } from '@ibiz-template/runtime';
import routes from './router';
import { AuthGuard } from './guard';
import 'antd/dist/antd.css';
import './styles/index.scss';

install();

ReactDOM.render(
  <HashRouter>
    <AuthGuard routes={routes} />
  </HashRouter>,
  document.getElementById('root') as HTMLElement,
);
